package com.studio701.carguard.service.imp;

import com.studio701.carguard.pojo.HelpPlan;
import com.studio701.carguard.mapper.HelpPlanMapper;
import com.studio701.carguard.service.IHelpPlanService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xjc
 * @since 2022-03-16
 */
@Service
public class HelpPlanServiceImpl extends ServiceImpl<HelpPlanMapper, HelpPlan> implements IHelpPlanService {

    @Autowired
    HelpPlanMapper helpPlanMapper;

    @Override
    public boolean updateHelpPlanByUserId(HelpPlan helpPlan) {
        return helpPlanMapper.updateHelpPlanByUserId(helpPlan);
    }

    @Override
    public boolean removeByUserId(Integer id) {
        return helpPlanMapper.removeByUserId(id);
    }
}
